<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>创建小店</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<link rel="stylesheet" type="text/css" href="css/common/animate.css"/>
		<link rel="stylesheet" type="text/css" href="css/build.css"/>
	</head>
	<body>
		<!--创建小店页面-->
		<div class="web">
			<header>
				<div class="nav">
					<a href="login.html">取消</a>
					<h1>创建微小店</h1>
				</div>
			</header>
			<div class="content">
				<form action="#">
					<div class="user_wrap">
						<p>店铺名称</p>
						<input type="text" name="username" id="username" value="" placeholder="请输入店铺名称，如某某小店" />
					</div>
					<div class="sub_btn">
						<p>立即开店</p>
					</div>
				</form>
			</div>
		</div>
		<!--创建小店页面结束-->
	<script src="js/jquery-2.1.0.js" type="text/javascript" charset="utf-8"></script>
	<script src="js/wow.js" type="text/javascript" charset="utf-8"></script>
	<script type="text/javascript">
		var w = new WOW();
		w.init();
		//店铺名字
		var username = document.querySelector("#username");
		var login_sub = document.querySelector(".sub_btn");
		login_sub.addEventListener("click",function(){
			var username = document.querySelector("#username");
			if(username.value == ""){
				alert("店名不能为空");
			}
			else{
				location.href="indexhouse.html";
			}
		})
	</script>
	</body>
</html>
